package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IRegisterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/** 注册接口
 * @author jianghaijun
 */
@Api(tags = "白名单接口 - 客户注册相关接口")
@RestController("openController")
@RequestMapping("/open/serve-provider")
public class RegisterController {
    @Resource
    private IRegisterService registerService;

    @ApiOperation("机构端注册接口")
    @PostMapping("/institution/register")
    public void register(@RequestBody InstitutionRegisterReqDTO institutionRegisterReqDTO) {
        registerService.register(institutionRegisterReqDTO);
    }

}
